//
// Created by ych on 2/13/24.
//
#include "setjmp.h"
#ifndef MATINTERPRETER_YCH_EXCEPTION_H
#define MATINTERPRETER_YCH_EXCEPTION_H

#define EXCEPTION_MEMORY 1
#define EXCEPTION_FILENOTFOUND 2
#define EXCEPTION_TOKENILLEGAL 3
#define EXCEPTION_STACKOUTOFRANGE 4
#define EXCEPTION_SYNTAXILLEGAL 5
#define EXCEPTION_SEMILLEGAL 6
#define EXCEPTION_RUNERROR 7
extern jmp_buf exception_buffer1;
extern jmp_buf exception_buffer2;
extern int mode;
extern int exception_val;
void throw(int val);
#endif //MATINTERPRETER_YCH_EXCEPTION_H
